package cn.springboot.erp.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName warehouses
 */
@TableName(value ="warehouses")
@Data
public class Warehouses implements Serializable {
    /**
     * 仓库ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 仓库名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 仓库地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 仓库管理员
     */
    @TableField(value = "manager")
    private String manager;

    /**
     * 仓库描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 仓库面积
     */
    @TableField(value = "area")
    private String area;

    /**
     * 仓库状态，0表示启用，1表示禁用
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}